package com.ffzx.commerce.framework.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 配置工具类
 * 
 * @author zhugj
 * @date 2016年1月18日 下午2:41:34
 * @version 1.0 
 */
@Component(value = "configUtil")
public class ConfigUtil {
	
	private @Value("${cas.server.url}")String casServerUrl;
	private @Value("${cas.service.url}")String casServiceUrl;
	private @Value("${web.basepath}")String basePath;
	
	public static ConfigUtil getInstance() {
		return SpringContextHolder.getApplicationContext().getBean("configUtil", ConfigUtil.class);
	}
	
	public String getCasServerUrl() {
		return casServerUrl;
	}
	
	public String getCasServiceUrl() {
		return casServiceUrl;
	}

	public String getBasePath() {
		return basePath;
	}
}
